import { Module } from '@nestjs/common';
import { UserService } from './user.service';
import { UserController } from './user.controller';
import { DbModule } from '../db/db.module';
import { JwtModule } from '@nestjs/jwt';

@Module({
  imports: [
    DbModule.register({
      path:'user.json'
    }),
    JwtModule.register({
      secret: 'jwt_secret',
      signOptions: { 
        expiresIn: '30d'
      },
    }),
  ],
  controllers: [UserController],
  providers: [UserService],
})
export class UserModule{}
